#include"UdpServer.hpp"

void Useage_Server(char* ch[])
{
    std::cout << "Useage: " << ch[0] << " port" << std::endl; 
}

int main(int argc,char* argv[])
{
    if(argc != 2)
    {
        Useage_Server(argv);
        exit(1);
    }

    std::string port = argv[1];
    uint16_t _port = std::stoi(port);
    std::unique_ptr<UdpServer> _uptr = std::make_unique<UdpServer>(_port);

    _uptr->Init();
    _uptr->Start();
    _uptr->Stop();


    return 0;
}